module.exports = {
  presets: [
    ['@vue/babel-preset-jsx', {
      compositionAPI: true,
    }],
    '@vue/cli-plugin-babel/preset',
  ],
  plugins: [
    [
      'import',
      { libraryName: 'ant-design-vue', libraryDirectory: 'es' }, // `style: true` 会加载 less 文件
    ],
    [
      'import',
      { libraryName: 'vxe-table', style: true },
      'vxe',
    ],
  ],
};
